package org.jackysoft.service;

import java.util.Collection;
import java.util.Set;

import org.jackysoft.data.IDataProvider;
import org.jackysoft.entity.FileItem;
import org.jackysoft.entity.User;
import org.jackysoft.file.FileType;
import org.springframework.dao.DataAccessException;

public interface FileDataService extends IDataProvider<String,FileItem>{
	
	void remove(Set<FileItem> files,FileType ft) throws DataAccessException;
		
	void share(final Set<FileItem> files ,FileType ft)throws DataAccessException;
	
	
	
	void clear(final int year,final int month) throws DataAccessException;
	
	void removeByIdz(Collection<String> fileIds)throws DataAccessException;
    
	void remove(User owner,FileType ft)throws DataAccessException;
	
	FileItem[] getsAllByID(Collection<String> ids,String fileType) throws DataAccessException;
	
	FileItem getForEdit(String id) throws DataAccessException;
} 
